Cleanup CMakeLists
There were a few things such as a no longer required component and mistakenly adding a not existing directory into the include directories.
This commit is contained in:
parent
e27e16d083
commit
170278fbec
|
@ -36,15 +36,19 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
find_package(wxWidgets 3.1.5 REQUIRED COMPONENTS propgrid core base)
|
||||
find_package(wxWidgets 3.1.5 REQUIRED COMPONENTS core base)
|
||||
include(${wxWidgets_USE_FILE})
|
||||
include_directories(speciesgen "include" "thirdparty/magic_enum/include" "thirdparty/cereal/include")
|
||||
include_directories("include" "thirdparty/magic_enum/include" "thirdparty/cereal/include")
|
||||
target_link_libraries(speciesgen PRIVATE ${wxWidgets_LIBRARIES})
|
||||
|
||||
add_definitions(-DSPECIESGEN_VERSION="${CMAKE_PROJECT_VERSION}")
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE EQUAL "DEBUG")
|
||||
if (NOT CMAKE_BUILD_TYPE STREQUAL "DEBUG")
|
||||
message(STATUS "Build type is RELEASE")
|
||||
add_definitions(-DwxDEBUG_LEVEL=0 -D_ITERATOR_DEBUG_LEVEL=0)
|
||||
else()
|
||||
message(STATUS "Build type is DEBUG")
|
||||
add_compile_options(-g -O0 -gdwarf-2)
|
||||
endif()
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER 3.12)
|
||||
|
|
Loading…
Reference in New Issue