summaryrefslogtreecommitdiff
path: root/src/mir_core/CMakeLists.txt
blob: 8c39e0e4d5b2bfa852d22d1c91efffab33d284a3 (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)
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")