summaryrefslogtreecommitdiffhomepage
path: root/editor/CMakeLists.txt
blob: b420aa9c9aa08e74e9e4ef26f419e6d8073cff79 (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
set(self ${PROJECT_NAME}-editor)

file(GLOB sources "*.cpp" "../loader/*.cpp" CONFIGURE_ARGS)
corrade_add_resource(res "../resources.conf")

if(MSVC)
    set_property(SOURCE "${res}" APPEND PROPERTY COMPILE_OPTIONS "-W0")
else()
    set_property(SOURCE "${res}" APPEND PROPERTY COMPILE_OPTIONS "-w")
endif()

if(WIN32)
    link_libraries(ntdll)
endif()

link_libraries(MagnumIntegration::ImGui fmt::fmt)

add_executable(${self} "${sources}" "${res}")
target_link_libraries(${self} ${PROJECT_NAME}-main)

if(FLOORMAT_PRECOMPILED-HEADERS)
    target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()

install(TARGETS ${self} RUNTIME DESTINATION bin)