-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor, changed file directories, changed namespace
- Loading branch information
1 parent
0a57aad
commit ef11d10
Showing
9 changed files
with
563 additions
and
1,124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,45 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
set(MODULE_NAME ruby-reflexpr) # change me | ||
|
||
project(${MODULE_NAME} LANGUAGES CXX) | ||
project(reflexpr) | ||
|
||
if (PROJECT_IS_TOP_LEVEL) | ||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
|
||
set(CMAKE_SYSTEM_VERSION 10.0.19041.0) | ||
|
||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin-etc") | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib") | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") | ||
|
||
set(CMAKE_CXX_STANDARD 23) | ||
set(CMAKE_CXX_STANDARD_REQUIRED) | ||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
|
||
# set(CMAKE_SYSTEM_VERSION 10.0.22000.0) | ||
|
||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin-lib") | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin-etc") | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") | ||
|
||
set(CMAKE_CXX_STANDARD 23) | ||
set(CMAKE_CXX_STANDARD_REQUIRED) | ||
endif() | ||
|
||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
enable_testing() | ||
|
||
include(CheckIPOSupported) | ||
check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT IPO_NOT_SUPPORTED_ERROR LANGUAGES CXX) | ||
|
||
if(NOT ${IPO_SUPPORTED}) | ||
message(STATUS "IPO / LTO not supported: <${IPO_NOT_SUPPORTED_ERROR}>") | ||
else() | ||
message(STATUS "IPO / LTO supported.") | ||
endif() | ||
|
||
include(FetchContent) | ||
|
||
add_subdirectory("include") | ||
|
||
add_library(fox::reflexpr ALIAS reflexpr) | ||
|
||
option(sample ON) | ||
# option(test ON) | ||
|
||
if (sample) | ||
add_subdirectory("sample") | ||
endif() | ||
|
||
add_subdirectory(src) | ||
add_subdirectory(examples) | ||
# if (test) | ||
# add_subdirectory("test") | ||
# endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
set(sources | ||
"${CMAKE_CURRENT_SOURCE_DIR}/fox/reflexpr.hpp" | ||
) | ||
|
||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${sources}) | ||
|
||
add_library( | ||
reflexpr | ||
INTERFACE | ||
${sources} | ||
) | ||
|
||
if(${IPO_SUPPORTED}) | ||
set_target_properties(reflexpr PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
endif() | ||
|
||
target_include_directories( | ||
reflexpr | ||
INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
Oops, something went wrong.