mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-01 06:30:52 +02:00
windoof dll export is not as easy as it should!
This commit is contained in:
parent
ab83f20c29
commit
ae2d022801
2 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ namespace greeter {
|
||||||
* @brief A class for saying hello in multiple languages
|
* @brief A class for saying hello in multiple languages
|
||||||
*/
|
*/
|
||||||
class GREETER_EXPORT Greeter {
|
class GREETER_EXPORT Greeter {
|
||||||
|
protected:
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -20,7 +21,7 @@ namespace greeter {
|
||||||
* @brief Creates a new greeter
|
* @brief Creates a new greeter
|
||||||
* @param name the name to greet
|
* @param name the name to greet
|
||||||
*/
|
*/
|
||||||
explicit Greeter(std::string name);
|
explicit Greeter(std::string _name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Creates a localized string containing the greeting
|
* @brief Creates a localized string containing the greeting
|
||||||
|
|
|
@ -54,7 +54,7 @@ if(NOT TEST_INSTALLED_VERSION)
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||||
target_compile_options(Greeter PUBLIC -Wall -Wpedantic -Wextra -Werror)
|
target_compile_options(Greeter PUBLIC -Wall -Wpedantic -Wextra -Werror)
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
# XXX target_compile_options(Greeter PUBLIC /W4 /WX)
|
target_compile_options(Greeter PUBLIC /W4 /WX)
|
||||||
target_compile_definitions(GreeterTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
|
target_compile_definitions(GreeterTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue