summaryrefslogtreecommitdiff
path: root/src/coreclr/hosts/corerun/CMakeLists.txt
blob: 841a7141d6c58b6fdc2f49b4d43743d9ecf8404d (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
33
34
35
36
project(CoreRun)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
set(CoreRun_SOURCES corerun.cpp logger.cpp)
set(CoreRun_RESOURCES native.rc)

add_definitions(-DFX_VER_INTERNALNAME_STR=CoreRun.exe)

if(CLR_CMAKE_PLATFORM_UNIX)
    # This does not compile on Linux yet
    if(CAN_BE_COMPILED_ON_LINUX)
        add_executable(CoreRun
          ${CoreRun_SOURCES}
          ${CoreRun_RESOURCES}
        )
    endif(CAN_BE_COMPILED_ON_LINUX)

else()
    add_executable(CoreRun
      ${CoreRun_SOURCES}
      ${CoreRun_RESOURCES}
    )

    target_link_libraries(CoreRun
        msvcrt.lib
    )

    # Can't compile on linux yet so only add for windows
    # add the install targets
    install (TARGETS CoreRun DESTINATION .)
    
    # We will generate PDB only for the debug configuration
    install (FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/CoreRun.pdb DESTINATION PDB)

endif(CLR_CMAKE_PLATFORM_UNIX)