-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdccSdasAsgbCMakeLists.txt
23 lines (19 loc) · 1.69 KB
/
sdccSdasAsgbCMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set (SDASGB_TOP_DIR ${CMAKE_CURRENT_LIST_DIR} )
set (SDASGB_APP sdasgb )
set (SDASGB_APP_DEFS _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS WIN32 _CONSOLE )
set (SDASGB_APP_DEFS ${SDASGB_APP_DEFS} INDEXLIB MLH_MAP SDK)
set (SDASGB_APP_INC_DIRS . ../asxxsrc ../../support/util )
set (SDASGB_APP_LIB_DIRS . ../asxxsrc ../../support/util )
set (SDASGB_APP_DEP_LIBS odbc32.lib odbccp32.lib )
file(GLOB UTIL_LIB_SRCS RELATIVE ${SDASGB_TOP_DIR} ../../support/util/*.c* ../../support/util/*.h* )
file(GLOB ASXX_LIB_SRCS RELATIVE ${SDASGB_TOP_DIR} ../asxxsrc/*.c* ../asxxsrc/*.h* )
file(GLOB SDASGB_APP_HDRS RELATIVE ${SDASGB_TOP_DIR} ./*.h*)
file(GLOB SDASGB_APP_SRCS RELATIVE ${SDASGB_TOP_DIR} ./*.c*)
set ( SDASGB_ALL_SRCS ${UTIL_LIB_SRCS} ${ASXX_LIB_SRCS} ${SDASGB_APP_HDRS} ${SDASGB_APP_SRCS})
list(REMOVE_ITEM SDASGB_ALL_SRCS ../../support/util/findme.c)
add_executable (${SDASGB_APP} ${SDASGB_APP_HDRS} ${SDASGB_ALL_SRCS} )
target_compile_definitions(${SDASGB_APP} PRIVATE ${SDASGB_APP_DEFS} )
target_include_directories(${SDASGB_APP} PRIVATE ${SDASGB_APP_INC_DIRS}/ )
target_link_directories (${SDASGB_APP} PRIVATE ${SDASGB_APP_LIB_DIRS}/ )
target_link_libraries (${SDASGB_APP} ${SDASGB_APP_DEP_LIBS} )
#target_link_options (${SDASGB_APP} PRIVATE "/SUBSYSTEM:WINDOWS" "/ENTRY:wWinMainCRTStartup" "/SAFESEH:NO" )