summaryrefslogtreecommitdiff
path: root/src/mir_core/CMakeLists.txt
blob: de7f89c588749cee2cb4631d2182e4dbb2533c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
file(GLOB SOURCES "src/*.h" "src/*.cpp")
if(CMAKE_CL_64)
	list(APPEND SOURCES "src/mir_core64.def")
else()
	list(APPEND SOURCES "src/mir_core.def")
endif()
set(TARGET mir_core)
include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake)
target_link_libraries(${TARGET} comctl32.lib Wtsapi32.lib ${PREBUILT_DIR}/mir_app.lib)
set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "MIR_CORE_EXPORTS")
add_custom_command(TARGET ${TARGET} PRE_BUILD COMMAND "${CMAKE_SOURCE_DIR}/build/make_ver.bat")