-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
176 additions
and
3 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
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 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,7 @@ | ||
@PACKAGE_INIT@ | ||
|
||
find_package(Threads REQUIRED) | ||
find_package(Angelscript 2.37.0 CONFIG REQUIRED) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/asbind20Targets.cmake") | ||
check_required_components(asbind20) |
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 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 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 +1,39 @@ | ||
#include <asbind20/asbind.hpp> | ||
|
||
namespace asbind20 | ||
{ | ||
[[nodiscard]] | ||
const char* library_version() noexcept | ||
{ | ||
#ifdef ASBIND20_DEBUG | ||
return ASBIND20_VERSION_STRING " DEBUG"; | ||
#else | ||
return ASBIND20_VERSION_STRING; | ||
#endif | ||
} | ||
|
||
const char* library_options() noexcept | ||
{ | ||
const char* str = " " | ||
|
||
// Extensions | ||
#ifdef ASBIND20_EXT_ARRAY | ||
"ASBIND20_EXT_ARRAY " | ||
#endif | ||
#ifdef ASBIND20_EXT_STDSTRING | ||
"ASBIND20_EXT_STDSTRING " | ||
#endif | ||
#ifdef ASBIND20_EXT_MATH | ||
"ASBIND20_EXT_MATH " | ||
#endif | ||
#ifdef ASBIND20_EXT_ASSERT | ||
"ASBIND20_EXT_ASSERT " | ||
#endif | ||
#ifdef ASBIND20_EXT_HELPER | ||
"ASBIND20_EXT_HELPER " | ||
#endif | ||
; | ||
|
||
return str; | ||
} | ||
} // namespace asbind20 |
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 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,11 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED) | ||
|
||
project(asbind20_test_install LANGUAGES CXX) | ||
|
||
find_package(asbind20 REQUIRED) | ||
|
||
add_executable(asbind20_test_install "test_install.cpp") | ||
target_link_libraries(asbind20_test_install PRIVATE asbind20::asbind20) |
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,13 @@ | ||
#include <iostream> | ||
#include <asbind20/asbind.hpp> | ||
|
||
int main() | ||
{ | ||
std::cout | ||
<< asbind20::library_version() | ||
<< '\n' | ||
<< asbind20::library_options() | ||
<< std::endl; | ||
|
||
return 0; | ||
} |