# # SOUI3 cmake配置文件 # # # 1394020320@qq.com # add_definitions(-DSOUI_EXPORTS -D_CRT_SECURE_NO_WARNINGS) file(GLOB_RECURSE CURRENT_HEADERS *.h *.hpp) file(GLOB_RECURSE CURRENT_SRCS *.cpp) file(GLOB_RECURSE CURRENT_UIRES *.xml *.idx *.ico) file(GLOB_RECURSE CURRENT_RC *.rc *.rc2) source_group("Header Files" FILES ${CURRENT_HEADERS}) source_group("Source Files" FILES ${CURRENT_SRCS}) source_group("SoUI Resource" FILES ${CURRENT_UIRES}) source_group("Resource Files" FILES ${CURRENT_RC}) set(source ${CURRENT_HEADERS} ${CURRENT_SRCS} ${CURRENT_UIRES}) if (NOT ENABLE_SOUI_CORE_LIB) set (source ${source} soui.rc) add_library(soui3 SHARED ${source}) else() add_library(soui3 STATIC ${source}) endif() target_include_directories(soui3 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include PUBLIC ${PROJECT_SOURCE_DIR}/config PUBLIC ${PROJECT_SOURCE_DIR}/utilities/include ) target_link_libraries(soui3 utilities) set_target_properties(soui3 PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "include/souistd.h") cotire(soui3) set(CORE_LIBS ${CORE_LIBS} soui3 CACHE INTERNAL "core_lib")