File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ cmake_minimum_required(VERSION 2.8...3.15)
22project (eps LANGUAGES C CXX)
33
44if (${EPS_LIB} )
5- add_library (${PROJECT_NAME} )
6- target_compile_definitions (${PROJECT_NAME} PRIVATE EPS_LIBRARY)
5+ add_library (${PROJECT_NAME} INTERFACE )
76 else ()
87 add_executable (${PROJECT_NAME} )
8+ target_sources (${PROJECT_NAME} PRIVATE source /main.cpp)
99endif ()
1010
11- target_sources (${PROJECT_NAME} PRIVATE source /main.cpp)
1211target_include_directories (${PROJECT_NAME} PUBLIC includes)
1312target_compile_features (${PROJECT_NAME} PRIVATE cxx_std_20)
Original file line number Diff line number Diff line change 11#include < chrono>
22#include " proxy.hpp"
33
4- #ifndef EPS_LIBRARY
5- proxy proxy_server = { 1337 };
4+ proxy proxy_server = { 1337 };
65
7- int main () {
8- while (1 ) std::this_thread::sleep_for (std::chrono::milliseconds (45 ));
9- };
10- #endif
6+ int main () {
7+ while (1 ) std::this_thread::sleep_for (std::chrono::milliseconds (45 ));
8+ };
You can’t perform that action at this time.
0 commit comments