simworld/client/CMakeLists.txt

15 lines
427 B
CMake

# client/CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
project(simworld-client VERSION 0.0.1 LANGUAGES C)
set(SOURCE_DIR ${CMAKE_SOURCE_DIR}/client/src)
file(GLOB_RECURSE SOURCES ${SOURCE_DIR}/*.c)
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} PRIVATE simworld)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
install(TARGETS ${PROJECT_NAME})