Finish lecture 82: Implement the World class
Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
21
LightYearsGame/CMakeLists.txt
Normal file
21
LightYearsGame/CMakeLists.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
add_executable(${LIGHT_YEARS_GAME_TARGET_NAME}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/gameFramework/GameApplication.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/gameFramework/GameApplication.cpp
|
||||
)
|
||||
|
||||
target_include_directories(${LIGHT_YEARS_GAME_TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
target_link_libraries(${LIGHT_YEARS_GAME_TARGET_NAME} PUBLIC ${LIGHT_YEARS_ENGINE_TARGET_NAME})
|
||||
|
||||
function(CopyLibDirToTarget LIB_NAME TARGET_NAME)
|
||||
add_custom_command(
|
||||
TARGET ${TARGET_NAME}
|
||||
POST_BUILD
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E copy_directory
|
||||
$<TARGET_FILE_DIR:${LIB_NAME}>
|
||||
$<TARGET_FILE_DIR:${TARGET_NAME}>
|
||||
)
|
||||
endfunction()
|
||||
|
||||
CopyLibDirToTarget(${LIGHT_YEARS_ENGINE_TARGET_NAME} ${LIGHT_YEARS_GAME_TARGET_NAME})
|
||||
Reference in New Issue
Block a user