make compilation better
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
add_executable(p-rad
|
||||
src/main.cpp
|
||||
${CORE_SOURCES}
|
||||
${HAL_SOURCES}
|
||||
)
|
||||
target_compile_options(p-rad PRIVATE -ffunction-sections -fdata-sections)
|
||||
target_link_options(p-rad PRIVATE -Wl,--gc-sections)
|
||||
if(CMAKE_BUILD_TYPE EQUAL Release)
|
||||
add_compile_options(-O3)
|
||||
endif()
|
||||
|
||||
target_include_directories(p-rad PRIVATE src)
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(SDL3 REQUIRED CONFIG)
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
target_link_libraries(p-rad
|
||||
Threads::Threads
|
||||
SDL3::SDL3
|
||||
CURL::libcurl
|
||||
GeographicLib
|
||||
)
|
||||
Reference in New Issue
Block a user