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:
prisixia 2023-05-08 09:57:01 +02:00
parent e27e16d083
commit 170278fbec
Signed by: prisixia
GPG Key ID: CB939A148C9B4125
1 changed files with 7 additions and 3 deletions

View File

@ -36,15 +36,19 @@ else()
) )
endif() 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(${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}) target_link_libraries(speciesgen PRIVATE ${wxWidgets_LIBRARIES})
add_definitions(-DSPECIESGEN_VERSION="${CMAKE_PROJECT_VERSION}") 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) 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() endif()
if (CMAKE_VERSION VERSION_GREATER 3.12) if (CMAKE_VERSION VERSION_GREATER 3.12)