blob: 634fdb77d640ed2b107a5e4b5ab818c898a74e5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
project(CoreConsole)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CoreConsole_SOURCES coreconsole.cpp logger.cpp)
set(CoreConsole_RESOURCES native.rc)
add_definitions(-DFX_VER_INTERNALNAME_STR=CoreConsole.exe)
if(CLR_CMAKE_PLATFORM_UNIX)
# This does not compile on Linux yet
if(CAN_BE_COMPILED_ON_LINUX)
add_executable(CoreConsole
${CoreConsole_SOURCES}
${CoreConsole_RESOURCES}
)
endif(CAN_BE_COMPILED_ON_LINUX)
else()
add_executable(CoreConsole
${CoreConsole_SOURCES}
${CoreConsole_RESOURCES}
)
target_link_libraries(CoreConsole
msvcrt.lib
)
# Can't compile on linux yet so only add for windows
install_clr(CoreConsole)
endif(CLR_CMAKE_PLATFORM_UNIX)
|