summaryrefslogtreecommitdiffhomepage
path: root/editor/CMakeLists.txt
blob: dd308a028ae44050e5254d2b86a87d68b84923da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set(self ${PROJECT_NAME}-editor)

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

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

add_executable(${self} "${sources}" "${res}" "../loader/loader-impl.cpp")
target_link_libraries(${self} ${PROJECT_NAME}-main)

install(TARGETS ${self} RUNTIME DESTINATION bin)