First working project
This commit is contained in:
parent
525da74e4c
commit
44b415cbaa
8 changed files with 62 additions and 0 deletions
21
SDLU_Example/CMakeLists.txt
Normal file
21
SDLU_Example/CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
set(PNAME sdlu_example)
|
||||
|
||||
add_executable(${PNAME}
|
||||
main.cpp header.hpp
|
||||
)
|
||||
|
||||
target_include_directories(${PNAME} PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/SDLU
|
||||
${PROJECT_SOURCE_DIR}/3rdparty/SDL/include
|
||||
)
|
||||
|
||||
target_link_libraries(${PNAME}
|
||||
${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2d.lib
|
||||
${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2maind.lib
|
||||
${CMAKE_BINARY_DIR}/SDLU/SDLU.lib
|
||||
)
|
||||
|
||||
add_custom_command(TARGET ${PNAME}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2d.dll ${CMAKE_BINARY_DIR}/SDLU_Example/
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue