Skip to content

Commit a8d44e3

Browse files
committed
State for v0.2.0
1 parent 63cdb4a commit a8d44e3

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

CMakeLists.txt

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
cmake_minimum_required(VERSION "3.12")
22

3-
project("spackexample" VERSION 0.1.0)
3+
project("spackexample" VERSION 0.2.0)
44

5-
# find_package(Boost
6-
# 1.65.1
7-
# REQUIRED
8-
# filesystem
9-
# )
5+
find_package(Boost
6+
1.65.1
7+
REQUIRED
8+
filesystem
9+
)
1010

1111
# find_package(yaml-cpp
1212
# 0.7.0
1313
# REQUIRED
1414
# )
1515

16-
# add_library(spackexamplelib filesystem/filesystem.cpp flatset/flatset.cpp yamlParser/yamlParser.cpp)
16+
add_library(spackexamplelib filesystem/filesystem.cpp flatset/flatset.cpp) # yamlParser/yamlParser.cpp)
1717

18-
# set_target_properties(spackexamplelib
19-
# PROPERTIES
20-
# PUBLIC_HEADER filesystem/filesystem.hpp
21-
# PUBLIC_HEADER flatset/flatset.hpp
18+
set_target_properties(spackexamplelib
19+
PROPERTIES
20+
PUBLIC_HEADER filesystem/filesystem.hpp
21+
PUBLIC_HEADER flatset/flatset.hpp
2222
# PUBLIC_HEADER yamlParser/yamlParser.hpp
23-
# )
23+
)
2424

2525
# include_directories(${YAML_CPP_INCLUDE_DIR})
2626

2727
add_executable(spackexample main.cpp)
2828

29-
# target_link_libraries(spackexample spackexamplelib)
30-
# target_link_libraries(spackexamplelib Boost::filesystem ${YAML_CPP_LIBRARIES})
29+
target_link_libraries(spackexample spackexamplelib)
30+
target_link_libraries(spackexamplelib Boost::filesystem) # ${YAML_CPP_LIBRARIES})
3131

32-
# target_include_directories(spackexamplelib
33-
# PRIVATE
34-
# ${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib
35-
# PUBLIC
36-
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib>
37-
# $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib>
38-
# )
32+
target_include_directories(spackexamplelib
33+
PRIVATE
34+
${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib
35+
PUBLIC
36+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib>
37+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib>
38+
)
3939

4040
# Create install targets
4141
include(GNUInstallDirs)
42-
install(TARGETS spackexample
43-
# install(TARGETS spackexample spackexamplelib
42+
install(TARGETS spackexample spackexamplelib
4443
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4544
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
4645
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}

main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
// #include "flatset/flatset.hpp"
2-
// #include "filesystem/filesystem.hpp"
1+
#include "flatset/flatset.hpp"
2+
#include "filesystem/filesystem.hpp"
33
// #include "yamlParser/yamlParser.hpp"
44
#include <iostream>
55

66
int main(int argc, char *argv[])
77
{
88
std::cout << "Let's fight with CMake, Docker, and some dependencies!" << std::endl << std::endl;
99

10-
// std::cout << "Modify a flat set using boost container" << std::endl;
11-
// modifyAndPrintSets();
12-
// std::cout << std::endl;
10+
std::cout << "Modify a flat set using boost container" << std::endl;
11+
modifyAndPrintSets();
12+
std::cout << std::endl;
1313

14-
// std::cout << "Inspect the current directory using boost filesystem" << std::endl;
15-
// inspectDirectory();
16-
// std::cout << std::endl;
14+
std::cout << "Inspect the current directory using boost filesystem" << std::endl;
15+
inspectDirectory();
16+
std::cout << std::endl;
1717

1818
// if ( argc == 2 )
1919
// {

0 commit comments

Comments
 (0)